<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <script>
        let userList = [
            {username:'张三',age:221,nation:'汉族'},
            {username:'李四',age:222,nation:'满足'},
            {username:'王五',age:223,nation:'回族'},
            {username:'赵六',age:224,nation:'汉族'},
            {username:'田七',age:225,nation:'汉族'}
        ];
        userList.forEach((item,index) => {
            console.log(item.username+","+item.age+","+item.nation);
        })
    </script>
</body>
</html>